package com.example.modelsystem.dao;

import com.example.modelsystem.entity.RecentChatEntity;
import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface RecentChatMapper {

    @Select("SELECT * FROM recent_chat WHERE user_id = #{userId}")
    List<RecentChatEntity> selectByUserId(@Param("userId") Integer userId);


}